package network.themis.rms.auth.common;

import lombok.Data;

import java.io.Serializable;

/**
 * @author ccl
 * @time 2018-07-24 16:01
 * @name ClientInfo
 * @desc:
 */
@Data
public class ClientInfo implements AuthInfo, Serializable{
    String id;
    String name;
    String clientId;

    public ClientInfo(String id, String name, String clientId) {
        this.id = id;
        this.name = name;
        this.clientId = clientId;
    }

    @Override
    public String getUniqueName() {
        return clientId;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public String getName() {
        return name;
    }
}
